import 'package:rabbit_mobile/i18n/strings.g.dart';

const HOME = '居家';
const CLOTHING = '服饰';
const PERSONALCARE = '个护';
const DIGITAL = '数码';
const GOURMET = '美食';
const MONTHER_BABY = '母婴';
const PREMIUM = '严选';
const SPORT = '运动';
const MISC = '杂项';
const SELECTED_STRATEGIES = '精选全攻略';
const SPECIAL_DEALS = '特惠推荐';
const MOST_POPULAR = '最受欢迎';
const HOT_RECOMMENDATIONS = '爆款推荐';
const CAREFULLY_SELECTED = '精心优选';
const ONE_STOP_SHOPPING = '一站买全';
const VALUE_COUPONS = '超值优惠券';
const COUPON_CENTER = '领劵中心';

String homePageLanguage(String item) {
  switch (item) {
    case HOME:
      return t.home;
    case CLOTHING:
      return t.clothing;
    case PERSONALCARE:
      return t.personalCare;
    case DIGITAL:
      return t.digital;
    case GOURMET:
      return t.gourmet;
    case MONTHER_BABY:
      return t.mother_Baby;
    case PREMIUM:
      return t.premium;
    case SPORT:
      return t.sport;
    case MISC:
      return t.misc;
    case SELECTED_STRATEGIES:
      return t.selected_strategies;
    case SPECIAL_DEALS:
      return t.special_deals;
    case MOST_POPULAR:
      return t.most_popular;
    case HOT_RECOMMENDATIONS:
      return t.hot_recommendations;
    case CAREFULLY_SELECTED:
      return t.carefully_selected;
    case ONE_STOP_SHOPPING:
      return t.one_stop_shopping;
    case VALUE_COUPONS:
      return t.value_coupons;
    case COUPON_CENTER:
      return t.coupon_center;
    default: 
      return ''; 
  }
}
